package ExtendsStudy;

public class Lecturer extends Teacher{
    String workMethod;

    @Override
    public void work() {
        System.out.println("负责讲课事项");
    }

    public Lecturer() {
    }

    public Lecturer(String workMethod) {
        this.workMethod = workMethod;
    }

    /**
     * 获取
     * @return workMethod
     */
    public String getWorkMethod() {
        return workMethod;
    }

    /**
     * 设置
     * @param workMethod
     */
    public void setWorkMethod(String workMethod) {
        this.workMethod = workMethod;
    }

    public String toString() {
        return "Lecturer{workMethod = " + workMethod + "}";
    }
}
